import * as mongoose from 'mongoose';
import db2 from '../lib/db/mongodb2';

//备份数据
let userCheckinSchema2: mongoose.Schema = new mongoose.Schema({
    sourceId:String,
    date_:String,//签到日期
    month:String,//签到月份
    userId:String,//员工id,
    checkin_time:String,//员工签到的时间
    isCheckInNineAm:Boolean,//是否是上午9:00前签到
    time_getCheckData:String//签到数据 获取的时间   
}, { collection: 'userCheckin' });
export interface UserCheckin2 extends mongoose.Document {
    sourceId:string;
    date_:string;
    month:string;
    userId:string;
    checkin_time:string;//签到时间点
    isCheckInNineAm:boolean;//是否是上午9:00前签到
    time_getCheckData:string  
}
let userCheckinModel2 = db2.model<UserCheckin2>('userCheckin', userCheckinSchema2);
// let userCheckinModel2 = db2.model('userCheckin2', userCheckinSchema2);
export default userCheckinModel2;